﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace GraphCompiler.Core.ObjectModel.DiagramModel
{
    public class Box
    {
        public Box(string name)
        {
            Name = name;
        }

        public string Name { get; private set; }

        public override bool Equals(object obj)
        {
            if (obj == null || GetType() != obj.GetType())
            {
                return false;
            }

            var other = (Box)obj;

            return Name == other.Name;
        }

        public override int GetHashCode()
        {
            return Name.GetHashCode();
        }
    }
}
